123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188 |
- <?xml version="1.0" encoding="EUC-KR"?>
- <?xml-stylesheet type="text/css" href="../../../com/commonweb/css/common.css" ?>
- <xhtml:html xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.w3.org/2002/01/xforms" xmlns:ev="http://www.w3.org/2001/xml-events">
- <xhtml:head>
- <xhtml:title>청구관리</xhtml:title>
- <model id="model1">
- <instance id="instance1">
- <root xmlns="">
- <main>
- <reqtrgtlst>
- <item>
- <sel/>
- <hngnm/>
- <pid/>
- <orddd/>
- <dgflag/>
- <rrgstno/>
- <pkgcd/>
- <pkgnm/>
- <payinsubamt/>
- <payhealcntramt/>
- <healexamflag/>
- <healexamdetlflag/>
- <rsrvdd/>
- <rsrvno/>
- <healexamgubun/>
- <plceflag/>
- </item>
- </reqtrgtlst>
- <reqlst>
- <item>
- <sel/>
- <clamseqno/>
- <clamdd/>
- <clamamt/>
- <payinsubamt/>
- <insuadjustamt/>
- <incminsuamt/>
- <insureduamt/>
- <insuaddamt/>
- <payhealcntramt/>
- <healcntradjustamt/>
- <incmhealcntramt/>
- <healcntrreduamt/>
- <healcntraddamt/>
- <clamstat/>
- <clamtrgtcd/>
- <rtnchkyn/>
- <remfact/>
- <healexamgubun/>
- </item>
- </reqlst>
- <reqdetllst>
- <item>
- <sel/>
- <clamseqno/>
- <clamdd/>
- <hngnm/>
- <rrgstno/>
- <pid/>
- <clamamt/>
- <payinsubamt/>
- <payhealcntramt/>
- <insuadjustamt/>
- <healcntradjustamt/>
- <insureduamt/>
- <healcntrreduamt/>
- <insuaddamt/>
- <healcntraddamt/>
- <clamstat/>
- <testcd/>
- <healexamflag/>
- <rsrvdd/>
- <rsrvno/>
- <healexamgubun/>
- </item>
- <incm>
- <incomedd/>
- <incomeflag/>
- <chngamt/>
- <incomeamt/>
- <discamt/>
- <remfact/>
- <userid/>
- <clamseqno/>
- <incomeseqno/>
- <cashcardflag/>
- <clamtrgtcd/>
- <incomestat/>
- <healexamgubun/>
- </incm>
- </reqdetllst>
- </main>
- <send>
- <srchhealexamflag/>
- <srchhealexamgubun/>
- <srchhealexamgubun2/>
- <srchfromdd/>
- <srchtodd/>
- <srchhealexamdetlflag/>
- <srchplceflag/>
- <srchplceflag2/>
- <srchreqtype/>
- <srchcmpycd/>
- <srchcmpynm/>
- <srchclamfromdd/>
- <srchclamtodd/>
- <srchclamstat>N</srchclamstat>
- <srchclamcretflag/>
- <srchclamsisfilename/>
- <srchclamseqno/>
- <cretsave>
- <reqcret/>
- <sisfilename/>
- </cretsave>
- <reqsave>
- <reqdata/>
- <reqdetldata/>
- </reqsave>
- <detl/>
- </send>
- <init>
- <baseinfo>
- <chedetlflaglst/>
- <ghedetlflaglst/>
- <asktype/>
- <hedetlflaglst>
- <item/>
- </hedetlflaglst>
- <incomeflaglst/>
- <healexamgubun/>
- <plceflag/>
- </baseinfo>
- </init>
- <hidden>
- <exeinfo>
- <exe/>
- </exeinfo>
- </hidden>
- <temp>
- <count>0</count>
- <payinsubamt>0</payinsubamt>
- <payhealcntramt>0</payhealcntramt>
- </temp>
- </root>
- </instance>
- <submission id="TRZBC00101"/>
- <submission id="TRAHA05021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqtrgtlst"/>
- <submission id="TRAHA05022" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send" resultref="/root/main/reqlst"/>
- <submission id="TRAHA05023" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/detl" resultref="/root/main/reqdetllst"/>
- <submission id="TXAHA05021" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cretsave" resultref="/root/hidden/exeinfo"/>
- <submission id="TXAHA05022" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqsave" resultref="/root/hidden/exeinfo"/>
- <submission id="TXAHA05023" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/reqsave" resultref="/root/hidden/exeinfo"/>
- <submission id="TXAHA05027" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/send/cretsave" resultref="/root/hidden/exeinfo"/>
- <submission id="TRPAO00005" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/magm/magminfo" resultref="/root/magm/aprvinfo"/>
- <submission id="TRPAO00006" mediatype="application/x-www-form-urlencoded" method="post" ref="/root/rcptuser/rcptuserinfosend" resultref="/root/rcptuser/rcptuserinfo"/>
- </model>
- <script type="javascript" src="../../../com/commonweb/js/common.js"/>
- <script type="javascript" src="../../../com/commonweb/js/dateHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/utilHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/stringHelper.js"/>
- <script type="javascript" src="../../../com/commonweb/js/tfHelper.js"/>
- <script type="javascript" src="../../../com/basiccodeweb/js/ZBC001.js"/>
- <script type="javascript" src="../../../com/zipcodeweb/js/ZBP001.js"/>
- <script type="javascript" src="../../../pam/pamcomnweb/js/PAM.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA001.js"/>
- <script type="javascript" src="../../../ast/healexamweb/js/AHA010.js"/>
- <script type="javascript" src="../../../ast/commonweb/js/AST.js"/>
- <script type="javascript" ev:event="xforms-ready">
- <![CDATA[
- var sFlag = getScreenMenuParameter();
- if(sFlag == ""){
- sFlag = "G01";
- }
- m_vHealexamflag = sFlag.substr(0, 1);
- m_vHealexamdetlflag = sFlag;
-
- fGetBaseInfo();
- fInitCtrl(true);
-
- // var curDt = "20120911";
- // model.setValue(ipt_rsvfrdd.attribute("ref") , curDt);
- // model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
- // model.setValue(ipt_clamfromdd.attribute("ref") , curDt);
- // model.setValue(ipt_clamtodd.attribute("ref") , curDt);
- // btn_reqcret.selected = true;
- // model.toggle("case_cret");
- // btn_reqmngt.selected = true;
- // model.toggle("case_mngt");
- model.refresh();
- ]]>
- </script>
- <script type="javascript">
- <![CDATA[
- m_vHealexamflag = "";
- m_vHealexamdetlflag = "";
-
- function fGetBaseInfo(){
- zbcfGetCodeList(new Array("A0069", "A0070", "A0108", "A0458", "A0088", "A0110"),
- new Array("/root/init/baseinfo/chedetlflaglst"
- ,"/root/init/baseinfo/ghedetlflaglst"
- ,"/root/init/baseinfo/asktype"
- ,"/root/init/baseinfo/incomeflaglst"
- ,"/root/init/baseinfo/healexamgubun"
- ,"/root/init/baseinfo/plceflag"
- ));
- copyNodesetType("/root/init/baseinfo/hedetlflaglst/item" , "/root/init/baseinfo/chedetlflaglst/A0069", "replace");
- copyNodesetType("/root/init/baseinfo/hedetlflaglst/item" , "/root/init/baseinfo/ghedetlflaglst/A0070", "after");
-
- astfAddCombo("/root/init/baseinfo/healexamgubun", "A0088", "cdid,cdnm", ",전체");
- astfAddCombo("/root/init/baseinfo/plceflag", "A0110", "cdid,cdnm", ",전체");
- cmb_srchplceflag.select(2);
-
- model.setValue("/root/send/srchhealexamflag" , m_vHealexamflag);
- model.setValue("/root/send/srchhealexamdetlflag" , m_vHealexamdetlflag);
- }
-
- function fInitCtrl(bAll){
- if(bAll == true){
- var curDt = getCurrentDate();
- model.setValue(ipt_rsvfrdd.attribute("ref") , curDt);
- model.setValue(ipt_rsvtodd.attribute("ref") , curDt);
- model.setValue(ipt_clamfromdd.attribute("ref") , curDt);
- model.setValue(ipt_clamtodd.attribute("ref") , curDt);
-
- cmb_reqtype.select(0);
- grd_reqcretlst.fixedcellcheckbox(0 , grd_reqcretlst.colRef("sel")) = true;
- grd_reqdetllst.fixedcellcheckbox(0 , grd_reqdetllst.colRef("sel")) = true;
-
- btn_reqcret.selected = true;
- model.toggle("case_cret");
- }
- }
-
- /********************************************************************************************************************************
- * 청구생성 할 대상을 조회
- *********************************************************************************************************************************/
- function fGetReqCretList() {
- submit("TRAHA05021");
- }
-
- /********************************************************************************************************************************
- * 선택된 청구대상자 금액 합계 출력
- *********************************************************************************************************************************/
- function fGetReqCretSum(){
- var count = 0;
- var payinsubamt = 0;
- var payhealcntramt = 0;
- /*
- for(var i=1; i<grd_reqcretlst.rows; i++){
- if(grd_reqcretlst.valueMatrix(i, grd_reqcretlst.colRef("sel")) == "Y"){
- count += 1;
- payinsubamt += parseInt(grd_reqcretlst.valueMatrix(i, grd_reqcretlst.colRef("payinsubamt")));
- payhealcntramt += parseInt(grd_reqcretlst.valueMatrix(i, grd_reqcretlst.colRef("payhealcntramt")));
- }
- }
- */
- for(var i=0 ; i<grd_reqcretlst.selectedRows; i++){
- count += 1;
- payinsubamt += parseInt(grd_reqcretlst.valueMatrix(grd_reqcretlst.selectedRow(i), grd_reqcretlst.colRef("payinsubamt")));
- payhealcntramt += parseInt(grd_reqcretlst.valueMatrix(grd_reqcretlst.selectedRow(i), grd_reqcretlst.colRef("payhealcntramt")));
- }
- model.setValue("/root/temp/count" , count);
- model.setValue("/root/temp/payinsubamt" , payinsubamt);
- model.setValue("/root/temp/payhealcntramt" , payhealcntramt);
- model.refresh();
- }
- /********************************************************************************************************************************
- * 청구생성
- *********************************************************************************************************************************/
- function fSetReqCret(){
- if(model.getValue("/root/send/srchhealexamgubun") == ""){
- messageBox("건진구분 ", "E014");
- return;
- }
- if(model.getValue("/root/send/srchplceflag") == ""){
- messageBox("건진장소 ", "E014");
- return;
- }
- if(model.getValue("/root/send/cretsave/sisfilename") == ""){
- messageBox("파일명 ", "E014");
- return;
- }
-
- grd_reqcretlst.clearStatus();
- model.resetInstanceNode("/root/send/cretsave/reqcret");
-
- for(var i=1; i < grd_reqcretlst.rows; i++){
- var chk = grd_reqcretlst.valueMatrix( i, grd_reqcretlst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/reqtrgtlst/item["+ i +"]/cretflag" , model.getValue("/root/send/srchreqtype"));
- model.setValue("/root/main/reqtrgtlst/item["+ i +"]/plceflag" , model.getValue("/root/send/srchplceflag"));
- model.setValue("/root/main/reqtrgtlst/item["+ i +"]/sisfilename" , model.getValue("/root/send/cretsave/sisfilename"));
- grd_reqcretlst.addStatus(i, "insert");
- }
- }
- var cretData = getGridUpdateData(grd_reqcretlst);
- if(cretData != ""){
- model.makeValue("/root/send/cretsave/reqcret", cretData);
- if(submit("TXAHA05021")){
- fGetReqCretList(); //청구생성 할 대상을 조회
- fGetClamList(); //청구내역 조회
- model.setValue("/root/send/cretsave/sisfilename", "");
- }
- }else {
- messageBox("생성할 내역이 ", "E014");
- return;
- }
- model.refresh();
- }
- /********************************************************************************************************************************
- * 청구내역 조회
- *********************************************************************************************************************************/
- function fGetClamList(){
- if(submit("TRAHA05022")){
- model.resetInstanceNode(grd_reqdetllst.nodeset);
- model.resetInstanceNode(grd_incmlst.nodeset);
- grd_reqdetllst.rebuild();
- grd_incmlst.rebuild();
-
- for(var i=1; i<grd_reqlst.rows; i++){
- var clamStat = grd_reqlst.valueMatrix(i,grd_reqlst.colRef("clamstat"));
- if(clamStat == "Y"){
- grd_reqlst.isReadOnly(i , grd_reqlst.colRef("adjustamt")) = true;
- grd_reqlst.isReadOnly(i , grd_reqlst.colRef("reduamt")) = true;
- grd_reqlst.isReadOnly(i , grd_reqlst.colRef("payinsuaddamt")) = true;
- }
- }
- fSetAmtSum();
- }
- }
- /********************************************************************************************************************************
- * 청구상세내역 조회
- *********************************************************************************************************************************/
- function fGetClamDetlList(){
- model.resetInstanceNode(grd_reqdetllst.nodeset);
- model.resetInstanceNode("/root/send/detl");
-
- var idx = grd_reqlst.row;
- for(var i=1; i < grd_reqlst.rows; i++){
- if(i == idx){
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) == "Y"){
- copyNodesetType("/root/send/detl", grd_reqlst.nodeset + "[" + idx + "]", "replace");
- }
- }else{
- grd_reqlst.valueMatrix(i, grd_reqlst.colRef("sel")) = "N";
- }
- }
-
- if(submit("TRAHA05023")){
- fSetDetAmtSum();
- }
- }
-
- /********************************************************************************************************************************
- * 청구취소
- *********************************************************************************************************************************/
- function fExeClamCncl(vClamFlag) {
- if(vClamFlag == null || vClamFlag == "") return;
- model.resetInstanceNode("/root/send/reqsave/execlamflag");
- model.resetInstanceNode("/root/send/reqsave/reqdata");
- model.resetInstanceNode("/root/send/reqsave/reqdetldata");
-
- grd_reqlst.clearStatus();
- var cnclCnt = 0;
-
- for(var i=1; i<grd_reqlst.rows; i++){
- var srcClamStat = grd_reqlst.valueMatrix( i , grd_reqlst.colRef("clamstat"));
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) == "Y"){
- if(grd_reqlst.valueMatrix(i , grd_reqlst.colRef("clamstat")) == "C"){
- cnclCnt++;
- }
- grd_reqlst.addStatus( i , "insert");
- }
- }
- if(cnclCnt > 0) {
- messageBox("이미 청구취소 된 내역" ,"E008");
- return;
- }
-
- var reqData = getGridUpdateData(grd_reqlst);
- if(reqData != ""){
-
- if(grd_incmlst.rows > 1){
- messageBox("입금내역이 존재하는 청구내역은 청구취소", "E001");
- return;
- }
-
- model.makeValue("/root/send/reqsave/reqdata" , reqData);
- model.makeValue("/root/send/reqsave/execlamflag" , vClamFlag)
-
- if(submit("TXAHA05022")) {
- grd_reqlst.clearStatus();
- grd_reqdetllst.clearStatus();
-
- fGetClamList(); //청구내역 조회
- for(var i=1; i<grd_reqlst.rows; i++){
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("clamseqno")) == model.getValue("/root/send/detl/clamseqno")) {
- grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) = "Y";
- if(submit("TRAHA05023")) {
- fSetDetAmtSum();
- }
- }
- }
- }
- }else {
- messageBox("청구 내역이 " , "E014");
- return;
- }
- }
- /********************************************************************************************************************************
- * 청구부분 반환
- *********************************************************************************************************************************/
- function fSetRtnClam() {
- grd_reqdetllst.clearStatus();
- var endCnt = 0;
- var cnclCnt = 0;
- var rtnCnt = 0;
-
- for(var i=0; i<grd_reqdetllst.rows; i++){
- if(grd_reqdetllst.valueMatrix( i , grd_reqdetllst.colRef("sel")) == "Y"){
- var clamstat = grd_reqdetllst.valueMatrix( i , grd_reqdetllst.colRef("clamstat"));
- grd_reqdetllst.addStatus(i, "insert");
- if(clamstat == "Y") endCnt++;
- if(clamstat == "C") cnclCnt++;
- if(clamstat == "R") rtnCnt++;
- }
- }
-
- if(endCnt > 0){
- messageBox("청구완료 내역을 반환 할수","I004");
- return;
- }
-
- if(cnclCnt > 0){
- messageBox("청구취소 내역을 반환 할수","I004");
- return;
- }
-
- if(rtnCnt > 0){
- messageBox("청구반환 내역을 반환 할수","I004");
- return;
- }
-
- var rtnData = getGridUpdateData(grd_reqdetllst);
- if(rtnData != ""){
- model.makeValue("/root/send/reqsave/rtndata", rtnData);
- if(submit("TXAHA05023")){
- fGetClamList(); //청구내역 조회
- for(var i = 1; i < grd_reqlst.rows; i++){
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("clamseqno")) == model.getValue("/root/send/detl/clamseqno")){
- grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) = "Y";
- if(submit("TRAHA05023")){
- fSetDetAmtSum();
- }
- }
- }
- }
- }else{
- messageBox("반환 내역이 " , "E014");
- return;
- }
- }
- /********************************************************************************************************************************
- * 입금저장
- *********************************************************************************************************************************/
- function fSetClamIncm(vClamFlag) {
- if(vClamFlag == "" || vClamFlag == null) return;
- model.resetInstanceNode("/root/send/reqsave/execlamflag");
- model.resetInstanceNode("/root/send/reqsave/reqdata");
- model.resetInstanceNode("/root/send/reqsave/reqdetldata");
- var reqData = "";
- var reqDetlData = "";
- var cnclCnt = 0;
-
- grd_reqlst.clearStatus();
- grd_reqdetllst.clearStatus();
-
- //청구내역
- for( var i=1; i < grd_reqlst.rows; i++){
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) == "Y"){
- if(grd_reqlst.valueMatrix(i, grd_reqlst.colRef("clamstat")) == "C"){
- cnclCnt++;
- }
- grd_reqlst.addStatus(i, "insert");
- }
- }
-
- //청구상세내역
- for(var j=1; j < grd_reqdetllst.rows-1; j++){
- if(grd_reqdetllst.valueMatrix(j ,grd_reqdetllst.colRef("clamstat")) != ""){
- grd_reqdetllst.addStatus(j , "insert");
- }
- }
-
- var reqData = getGridUpdateData(grd_reqlst);
- var reqDetlData = getGridUpdateData(grd_reqdetllst);
-
- if(cnclCnt > 0){
- messageBox("청구취소 내역은 입금저장" , "E001");
- return;
- }
-
- if(reqData == ""){
- messageBox("선택된 내역이" , "I004");
- return;
- }
-
- model.makeValue("/root/send/reqsave/reqdata" , reqData);
- model.makeValue("/root/send/reqsave/reqdetldata" , reqDetlData);
- model.makeValue("/root/send/reqsave/execlamflag" , vClamFlag);
-
- if(submit("TXAHA05022")){
- grd_reqlst.clearStatus();
- grd_reqdetllst.clearStatus();
-
- fGetClamList(); //청구내역 조회
- for(var i = 1; i < grd_reqlst.rows; i++) {
- if(grd_reqlst.valueMatrix( i , grd_reqlst.colRef("clamseqno")) == model.getValue("/root/send/detl/clamseqno")){
- grd_reqlst.valueMatrix( i , grd_reqlst.colRef("sel")) = "Y";
- if(submit("TRAHA05023")){
- fSetDetAmtSum();
- }
- }
- }
- }
- }
-
- /********************************************************************************************************************************
- * 청구내역을 수정한다. (청구구분, 파일명, 비고사항)
- *********************************************************************************************************************************/
- function fSetCret(){
- grd_reqlst.clearStatus();
- model.resetInstanceNode("/root/send/cretsave/reqcret");
-
- for(var i=1; i < grd_reqlst.rows; i++){
- var chk = grd_reqlst.valueMatrix( i, grd_reqlst.colRef("sel"));
- if(chk == "Y"){
- grd_reqlst.addStatus(i, "insert");
- }
- }
- var cretData = getGridUpdateData(grd_reqlst);
- if(cretData != "") {
- model.makeValue("/root/send/cretsave/reqcret", cretData);
- if(submit("TXAHA05027")){
- fGetReqCretList(); //청구생성 할 대상을 조회
- fGetClamList(); //청구내역 조회
- }
- }else {
- messageBox("저장 내역이 ", "E014");
- return;
- }
- }
-
- /********************************************************************************************************************************
- * 청구내역 총계를 생성한다.
- *********************************************************************************************************************************/
- function fSetAmtSum(){
- grd_reqlst.subtotalPosition = "below";
- //grd_reqlst.multiTotals = true;
-
- grd_reqlst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", 2, "총계" );
- for(var i=0; i < grd_reqlst.cols; i++){
- if(i>= grd_reqlst.colRef("clamamt") && i<grd_reqlst.colRef("clamstat")){
- grd_reqlst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", 2, "총계" );
- }
- }
- }
- /********************************************************************************************************************************
- * 청구상세내역 총계를 생성한다.
- *********************************************************************************************************************************/
- function fSetDetAmtSum() {
- grd_reqdetllst.subtotalPosition = "below";
- //grd_reqdetllst.multiTotals = true;
-
- grd_reqdetllst.subtotal("clear", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", 2, "총계" );
- for(var i=0; i < grd_reqdetllst.cols-5; i++){
- if(i >= grd_reqdetllst.colRef("clamamt") && i<grd_reqlst.colRef("clamstat")){
- grd_reqdetllst.subtotal("sum", -1, i, "format:(-,+)#,###; roundmode:round; roundpostion:2", "background-color:#99ff99; font-weight:bold", 2, "총계" );
- }
- }
- }
- /********************************************************************************************************************************
- * 청구내역
- * 공단금액, 보건소금액 > 공단입금액 보건입금액 복사
- *********************************************************************************************************************************/
- function fSetAmtCopy(){
- var chkYn = "N";
- for(var i=1; i < grd_reqlst.rows-1; i++){
- var chk = grd_reqlst.valueMatrix(i, grd_reqlst.colRef("sel"));
- if(chk == "Y"){
- model.setValue("/root/main/reqlst/item["+ i +"]/incminsuamt" , model.getValue("/root/main/reqlst/item["+ i +"]/insuadjustamt"));
- model.setValue("/root/main/reqlst/item["+ i +"]/incmhealcntramt" , model.getValue("/root/main/reqlst/item["+ i +"]/healcntradjustamt"));
- chkYn = "Y";
- }
- }
- if(chkYn == "N"){
- messageBox("선택된 내역이 ", "E014");
- return;
- }
- fSetAmtSum();
- model.refresh();
- }
-
- /********************************************************************************************************************************
- * 청구상세내역
- * 공단금액, 보건소금액 > 공단조정액, 보건조정액 복사
- *********************************************************************************************************************************/
- function fSetDetAmtCopy(){
- for(var i=1; i < grd_reqdetllst.rows-1; i++){
- model.setValue("/root/main/reqdetllst/item["+ i +"]/insuadjustamt" , model.getValue("/root/main/reqdetllst/item["+ i +"]/payinsubamt"));
- model.setValue("/root/main/reqdetllst/item["+ i +"]/healcntradjustamt" , model.getValue("/root/main/reqdetllst/item["+ i +"]/payhealcntramt"));
- }
- fSetDetAmtSum();
- model.refresh();
- }
- ]]>
- </script>
- </xhtml:head>
- <xhtml:body style="margin-left:8; margin-top:0; margin-right:8; margin-bottom:0; ">
- <group id="group1" style="left:0px; top:0px; width:1195px; height:13px; ">
- <caption id="caption6" class="tit_1" style="left:0px; top:0px; width:800px; height:14px; ">공단청구관리</caption>
- </group>
- <group id="grp_biz" scroll="auto" style="left:0px; top:13px; width:1195px; height:744px; ">
- <button id="btn_reqmngt" class="btn_sw" group="tab" selected="true" style="left:89px; top:5px; width:94px; height:22px; ">
- <caption>청구/반송관리</caption>
- <toggle case="case_mngt" ev:event="onclick"/>
- </button>
- <button id="btn_reqcret" class="btn_sw" group="tab" selected="true" style="left:5px; top:5px; width:84px; height:22px; ">
- <caption>청구생성</caption>
- <toggle case="case_cret" ev:event="onclick"/>
- </button>
- <switch id="swt_req" style="left:5px; top:27px; width:1185px; height:712px; ">
- <case id="case_cret" selected="true">
- <shape id="roundrect1" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1183px; height:70px; "/>
- <caption id="caption1" class="search_name" style="left:5px; top:10px; width:98px; height:17px; ">건진구분 :</caption>
- <select1 id="combo1" ref="/root/send/srchhealexamdetlflag" disabled="true" appearance="minimal" style="left:95px; top:10px; width:130px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/hedetlflaglst/item">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption10" class="search_name" style="left:230px; top:10px; width:230px; height:17px; ">건진일자 : ~</caption>
- <input id="ipt_rsvfrdd" ref="/root/send/srchfromdd" class="input_s_essential" inputtype="date" style="left:320px; top:10px; width:95px; height:19px; "/>
- <input id="ipt_rsvtodd" ref="/root/send/srchtodd" class="input_s_essential" inputtype="date" style="left:435px; top:10px; width:95px; height:19px; "/>
- <caption id="caption15" class="search_name" style="left:540px; top:10px; width:94px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_srchhealexamgubun1" ref="/root/send/srchhealexamgubun" class="combo_search" appearance="minimal" style="left:630px; top:10px; width:110px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamgubun/A0088">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption36" class="search_name" style="left:750px; top:10px; width:89px; height:17px; ">건진장소 :</caption>
- <select1 id="cmb_srchplceflag" ref="/root/send/srchplceflag" class="combo_search" appearance="minimal" style="left:840px; top:10px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption7" class="search_name" style="left:905px; top:10px; width:94px; height:17px; ">청구구분 :</caption>
- <select1 id="cmb_reqtype" ref="/root/send/srchreqtype" class="combo_search" appearance="minimal" style="left:995px; top:10px; width:110px; height:19px; ">
- <choices>
- <item>
- <label>일반건진</label>
- <value>1</value>
- </item>
- <item>
- <label>구강건진</label>
- <value>2</value>
- </item>
- <item>
- <label>암건진</label>
- <value>3</value>
- </item>
- <item>
- <label>영유아검진</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption4" class="search_name" style="left:5px; top:40px; width:86px; height:17px; ">사 업 장 :</caption>
- <input id="ipt_srchcmpycd" ref="/root/send/srchcmpycd" class="input_search" style="left:90px; top:40px; width:85px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- inputEnterKey("btn_selcmpy", "DOMActivate");
- ]]>
- </script>
- </input>
- <button id="btn_selcmpy" class="icon_search" style="left:182px; top:40px; width:16px; height:16px; ">
- <caption/>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetComnCd("SMAHA01500", "09" , "cd", ipt_srchcmpycd.currentText ,ipt_srchcmpycd.attribute("ref"), opt_srchcmpynm.attribute("ref"));
- ]]>
- </script>
- </button>
- <output id="opt_srchcmpynm" ref="/root/send/srchcmpynm" class="output_fix" style="left:205px; top:40px; width:185px; height:19px; "/>
- <caption id="caption16" class="search_name" style="left:395px; top:40px; width:86px; height:17px; ">파일명 :</caption>
- <input id="input1" ref="/root/send/cretsave/sisfilename" class="input_search" style="left:470px; top:40px; width:205px; height:19px; "/>
- <button id="btn_srch" class="btn1_letter2" style="left:1119px; top:24px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetReqCretList(); //청구생성 할 대상을 조회
- fGetReqCretSum();
- ]]>
- </script>
- </button>
- <caption id="caption3" class="tit_2" style="left:5px; top:75px; width:111px; height:14px; ">청구대상자</caption>
- <output id="count" ref="/root/temp/count" format="(-)#,###" style="left:261px; top:75px; width:55px; height:19px; font-weight:bold; color:#ff0000; text-align:right; "/>
- <caption id="caption2" style="left:316px; top:78px; width:30px; height:14px; font-weight:bold; color:#ff0000; ">명</caption>
- <output id="payinsubamt" ref="/root/temp/payinsubamt" format="(-)#,###" style="left:330px; top:75px; width:105px; height:19px; font-weight:bold; color:#ff0000; text-align:right; "/>
- <output id="payhealcntramt" ref="/root/temp/payhealcntramt" format="(-)#,###" style="left:432px; top:75px; width:105px; height:19px; font-weight:bold; color:#ff0000; text-align:right; "/>
- <button id="button1" class="btn2_letter4" style="left:1112px; top:73px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_reqcretlst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <line id="line1" class="line_4" style="x1:1113px; y1:8px; x2:1113px; y2:60px; "/>
- <line id="line2" class="line_1" style="x1:5px; y1:94px; x2:1177px; y2:94px; "/>
- <datagrid id="grd_reqcretlst" nodeset="/root/main/reqtrgtlst/item" caption="^성명^주민번호^공단금액^보건소(국고)금액^건진일자^등록번호^1/2차구분^패키지^패키지명^healexamflag^healexamdetlflag^rsrvdd^rsrvno^cretflag^sisfilename^healexamgubun^plceflag" colsep="^" colwidth="40, 100, 150, 100, 100, 100, 100, 100, 100, 200, 100, 100, 100, 100, 100, 100, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:99px; width:1172px; height:606px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="hngnm" style="text-align:center; "/>
- <col ref="rrgstno" format="999999-9999999" style="text-align:center; "/>
- <col ref="payinsubamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payhealcntramt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="orddd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col disabled="true" ref="dgflag" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>1차</label>
- <value>1</value>
- </item>
- <item>
- <label>2차</label>
- <value>2</value>
- </item>
- </choices>
- </col>
- <col ref="pkgcd"/>
- <col ref="pkgnm" style="text-align:left; "/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="healexamdetlflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="cretflag" visibility="hidden"/>
- <col ref="sisfilename" visibility="hidden"/>
- <col ref="healexamgubun" visibility="hidden"/>
- <col ref="plceflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqcretlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="onmouseup">
- <![CDATA[
- fGetReqCretSum();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(isDataCell()){
- if(grd_reqcretlst.isCell(event.target) && grd_reqcretlst.col == "1" && grd_reqcretlst.valueMatrix(grd_reqcretlst.row, grd_reqcretlst.colRef("sel")) == "Y"){
- var hngnm = grd_reqcretlst.valueMatrix(grd_reqcretlst.row, grd_reqcretlst.colRef("hngnm"));
- var rrgstno = grd_reqcretlst.valueMatrix(grd_reqcretlst.row, grd_reqcretlst.colRef("rrgstno"));
-
- for(var i=1; i<grd_reqcretlst.rows; i++){
- if(hngnm == grd_reqcretlst.valueMatrix(i, grd_reqcretlst.colRef("hngnm")) && rrgstno != grd_reqcretlst.valueMatrix(i, grd_reqcretlst.colRef("rrgstno"))){
- messageBox("청구대상자 리스트에 동명이인이","I010");
- return;
- }
- }
- }
- }
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_mngt">
- <shape id="roundrect2" class="roundrect_search" appearance="roundrect" style="left:0px; top:0px; width:1183px; height:65px; "/>
- <caption id="caption5" class="search_name" style="left:5px; top:10px; width:98px; height:17px; ">청구일자 :</caption>
- <input id="ipt_clamfromdd" ref="/root/send/srchclamfromdd" class="input_s_essential" inputtype="date" style="left:95px; top:10px; width:95px; height:19px; "/>
- <caption id="caption9" class="search_n_b" style="left:195px; top:10px; width:12px; height:17px; font-weight:bolder; ">~</caption>
- <input id="ipt_clamtodd" ref="/root/send/srchclamtodd" class="input_s_essential" inputtype="date" style="left:210px; top:10px; width:95px; height:19px; "/>
- <caption id="caption13" class="search_name" style="left:310px; top:10px; width:98px; height:17px; ">청구상태 :</caption>
- <select id="checkbox1" ref="/root/send/srchclamstat" overflow="visible" appearance="full" cols="3" sep="▦" style="left:400px; top:13px; width:180px; height:20px; border-style:none; ">
- <choices>
- <item>
- <label>청구</label>
- <value>N</value>
- </item>
- <item>
- <label>청구취소</label>
- <value>C</value>
- </item>
- <item>
- <label>청구완료</label>
- <value>Y</value>
- </item>
- </choices>
- </select>
- <caption id="caption8" class="search_name" style="left:590px; top:10px; width:94px; height:17px; ">건진구분 :</caption>
- <select1 id="cmb_srchhealexamgubun2" ref="/root/send/srchhealexamgubun2" class="combo_search" appearance="minimal" style="left:680px; top:10px; width:80px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/healexamgubun/A0088">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption11" class="search_name" style="left:770px; top:10px; width:89px; height:17px; ">건진장소 :</caption>
- <select1 id="cmb_srchplceflag2" ref="/root/send/srchplceflag2" class="combo_search" appearance="minimal" style="left:860px; top:10px; width:60px; height:19px; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </select1>
- <caption id="caption12" class="search_name" style="left:930px; top:10px; width:98px; height:17px; ">청구구분 :</caption>
- <select1 id="combo3" ref="/root/send/srchclamcretflag" class="combo_search" appearance="minimal" style="left:1021px; top:10px; width:80px; height:19px; ">
- <choices>
- <item>
- <label>전체</label>
- <value/>
- </item>
- <item>
- <label>일반건진</label>
- <value>1</value>
- </item>
- <item>
- <label>구강건진</label>
- <value>2</value>
- </item>
- <item>
- <label>암건진</label>
- <value>3</value>
- </item>
- <item>
- <label>영유아검진</label>
- <value>4</value>
- </item>
- </choices>
- </select1>
- <caption id="caption14" class="search_name" style="left:5px; top:35px; width:98px; height:17px; ">파일명 :</caption>
- <input id="input4" ref="/root/send/srchclamsisfilename" class="combo_search" style="left:80px; top:35px; width:275px; height:19px; ">
- <script type="javascript" ev:event="onkeyup">
- <![CDATA[
- if(event.keyCode == 13){
- inputEnterKey("btn_srch2", "DOMActivate");
- }
- ]]>
- </script>
- </input>
- <!-- 청구번호 조회조건 삭제 - 20110920_서원식
- <caption id="caption12" class="search_name" style="left:670px; top:10px; width:98px; height:17px; ">청구번호 :</caption>
- <input id="input3" ref="/root/send/srchclamseqno" style="left:760px; top:10px; width:150px; height:19px; "/>
- -->
- <button id="btn_srch2" class="btn1_letter2" style="left:1120px; top:25px; width:56px; height:22px; ">
- <caption>조회</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fGetClamList(); //청구내역 조회
- ]]>
- </script>
- </button>
- <caption id="caption17" class="tit_2" style="left:5px; top:70px; width:111px; height:13px; ">청구내역</caption>
- <line id="line3" class="line_4" style="x1:1113px; y1:12px; x2:1113px; y2:55px; "/>
- <line id="line4" class="line_1" style="x1:5px; y1:89px; x2:1177px; y2:89px; "/>
- <button id="button2" class="btn2_letter4" style="left:1113px; top:69px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_reqlst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <button id="button8" class="btn5_letter2" style="left:996px; top:69px; width:42px; height:19px; ">
- <caption>저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetCret();
- ]]>
- </script>
- </button>
- <button id="button3" class="btn5_letter4" style="left:1044px; top:69px; width:64px; height:19px; ">
- <caption>일괄입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetAmtCopy();
- ]]>
- </script>
- </button>
- <datagrid id="grd_reqlst" nodeset="/root/main/reqlst/item" caption="선택^청구일자^청구구분^건진장소^파일명^청구금액^공단금액^공단조정액^공단입금액^공단삭감액^공단절사액^공단추가액^보건소(국고)금액^보건소(국고)조정액^보건소(국고)입금액^보건소(국고)삭감액^보건소(국고)절사액^보건소(국고)추가액^청구상태^청구처코드^반환내역^비고^청구번호^healexamgubun" colsep="^" colwidth="40, 80, 90, 70, 200, 80, 80, 80, 80, 80, 80, 80, 107, 119, 123, 122, 118, 115, 80, 100, 55, 200, 80, 100" explorerbar="sortshow" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:94px; width:1172px; height:141px; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col disabled="true" ref="cretflag" type="combo">
- <choices>
- <item>
- <label>일반건진</label>
- <value>1</value>
- </item>
- <item>
- <label>구강건진</label>
- <value>2</value>
- </item>
- <item>
- <label>암건진</label>
- <value>3</value>
- </item>
- <item>
- <label>영유아검진</label>
- <value>4</value>
- </item>
- </choices>
- </col>
- <col disabled="true" ref="plceflag" type="combo">
- <choices>
- <itemset nodeset="/root/init/baseinfo/plceflag/A0110">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="sisfilename" type="input" style="text-align:left; "/>
- <col ref="clamamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payinsubamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insuadjustamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incminsuamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insureduamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insurestamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insuaddamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payhealcntramt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntradjustamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="incmhealcntramt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntrreduamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntrrestamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntraddamt" format="(-,+)#,###" style="text-align:right; "/>
- <col disabled="true" ref="clamstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구</label>
- <value>N</value>
- </item>
- <item>
- <label>청구취소</label>
- <value>C</value>
- </item>
- <item>
- <label>청구완료</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="clamtrgtcd" type="input" visibility="hidden"/>
- <col checkvalue="Y,N" ref="rtnchkyn" type="checkbox" visibility="hidden"/>
- <col ref="remfact" type="input"/>
- <col ref="clamseqno" style="text-align:left; "/>
- <col ref="healexamgubun" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqlst.gridToInstance();
- ]]>
- </script>
- <script type="javascript" ev:event="xforms-value-changed">
- <![CDATA[
- if(grd_reqlst.colRef("sel") == grd_reqlst.col){
- fGetClamDetlList();
- }
- ]]>
- </script>
- <!--
- <script type="javascript" ev:event="onbuttonclick">
- <![CDATA[
- //fGetComnCd("SMAHA01500", "08" , "cd", grd_reqlst.valueMatrix(grd_reqlst.row , grd_reqlst.colRef("clamtrgtcd")) , grd_reqlst.nodeset + "[" + grd_reqlst.row + "]/clamtrgtcd" );
- ]]>
- </script>
- -->
- </datagrid>
- <button id="btn_incm" class="btn_sw" group="tab2" selected="true" style="left:69px; top:243px; width:64px; height:22px; ">
- <caption>입금내역</caption>
- <toggle case="case_incm" ev:event="onclick"/>
- </button>
- <button id="btn_clam" class="btn_sw" group="tab2" selected="true" style="left:5px; top:243px; width:64px; height:22px; ">
- <caption>청구내역</caption>
- <toggle case="case_clam" ev:event="onclick"/>
- </button>
- <switch id="switch1" style="left:5px; top:265px; width:1172px; height:441px; ">
- <case id="case_clam" selected="true">
- <caption id="caption18" class="tit_2" style="left:5px; top:5px; width:111px; height:13px; ">청구상세내역</caption>
- <line id="line5" class="line_1" style="x1:5px; y1:24px; x2:1165px; y2:24px; "/>
- <button id="btn_rtn2" class="btn5_letter4" style="left:892px; top:4px; width:64px; height:19px; ">
- <caption>환자검색</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- modal("SPAHR00900", "", "", "", "SPAHR00900", "/root/source","/root/target");
- ]]>
- </script>
- </button>
- <button id="btn_rtn" class="btn5_letter4" style="left:962px; top:4px; width:64px; height:19px; ">
- <caption>선택반환</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetRtnClam();
- ]]>
- </script>
- </button>
- <button id="button4" class="btn5_letter4" style="left:1032px; top:4px; width:64px; height:19px; ">
- <caption>일괄입력</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- fSetDetAmtCopy();
- ]]>
- </script>
- </button>
- <button id="btn_detlexcel" class="btn2_letter4" style="left:1101px; top:4px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_reqdetllst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_reqdetllst" nodeset="/root/main/reqdetllst/item" caption="^청구일자^청구번호^성명^주민번호^등록번호^청구금액^공단^조정액^삭감액^절사액^추가액^보건소(국고)^조정액^삭감액^절사액^추가액^청구상태^검사코드^healexamflag^rsrvdd^rsrvno^healexamgubun^plceflag" colsep="^" colwidth="21, 66, 57, 57, 90, 60, 60, 60, 60, 60, 60, 60, 78, 60, 60, 60, 60, 65, 87, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:29px; width:1160px; height:405px; color:#ff0000; ">
- <col checkvalue="Y,N" ref="sel" type="checkbox"/>
- <col ref="clamdd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="clamseqno" visibility="hidden" style="text-align:left; "/>
- <col ref="hngnm" style="text-align:center; "/>
- <col editable="false" ref="rrgstno" type="input" format="999999-9999999" style="text-align:center; "/>
- <col ref="pid" style="text-align:center; "/>
- <col ref="clamamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payinsubamt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insuadjustamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insureduamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insurestamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="insuaddamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="payhealcntramt" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntradjustamt" type="input" format="(-,+)#,###" style="left:1070px; top:23px; width:80px; height:23px; text-align:right; "/>
- <col ref="healcntrreduamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntrrestamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col ref="healcntraddamt" type="input" format="(-,+)#,###" style="text-align:right; "/>
- <col disabled="true" ref="clamstat" type="combo" style="text-align:center; ">
- <choices>
- <item>
- <label>청구</label>
- <value>N</value>
- </item>
- <item>
- <label>청구취소</label>
- <value>C</value>
- </item>
- <item>
- <label>청구반환</label>
- <value>R</value>
- </item>
- <item>
- <label>청구완료</label>
- <value>Y</value>
- </item>
- </choices>
- </col>
- <col ref="testcd"/>
- <col ref="healexamflag" visibility="hidden"/>
- <col ref="rsrvdd" visibility="hidden"/>
- <col ref="rsrvno" visibility="hidden"/>
- <col ref="healexamgubun" visibility="hidden"/>
- <col ref="plceflag" visibility="hidden"/>
- <script type="javascript" ev:event="onaftersort">
- <![CDATA[
- grd_reqdetllst.gridToInstance();
- ]]>
- </script>
- </datagrid>
- </case>
- <case id="case_incm">
- <caption id="caption19" class="tit_2" style="left:5px; top:5px; width:111px; height:14px; ">입금내역</caption>
- <line id="line6" class="line_1" style="x1:5px; y1:24px; x2:1165px; y2:24px; "/>
- <button id="btn_incmexcel" class="btn2_letter4" style="left:1101px; top:4px; width:64px; height:19px; ">
- <caption>엑셀저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- var fileName = window.fileDialog("save", ",", false, "excel", "xls", "Excel Files(*.xls)|*.xls|All Files (*.*)|*.*");
- if(fileName != "") grd_incmlst.saveExcel(fileName, "SheetName", false, false, "", "", false);
- ]]>
- </script>
- </button>
- <datagrid id="grd_incmlst" nodeset="/root/main/reqdetllst/incm" caption="입금일자^입금구분^심자조정금액^입금액^삭감액^절사액^비고^입력자^청구번호^입금일련번호^카드현금구분^청구처코드^입금상태^healexamgubun" colsep="^" colwidth="100, 80, 100, 100, 100, 100, 200, 100, 100, 100, 100, 100, 100" mergecellsfixedrows="bycolrec" rowheader="seq" rowsep="|" style="left:5px; top:29px; width:1160px; height:405px; ">
- <col ref="incomedd" format="yyyy-mm-dd" style="text-align:center; "/>
- <col ref="incomeflag" type="combo" format="yyyy-mm-dd" style="text-align:left; ">
- <choices>
- <itemset nodeset="/root/init/baseinfo/incomeflaglst/A0458">
- <label ref="cdnm"/>
- <value ref="cdid"/>
- </itemset>
- </choices>
- </col>
- <col ref="chngamt" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="incomeamt" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="discamt" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="restamt" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="remfact" format="(-,+)#,###" style="text-align:left; "/>
- <col ref="userid" style="text-align:left; "/>
- <col ref="clamseqno" style="text-align:left; "/>
- <col ref="incomeseqno" visibility="hidden"/>
- <col ref="cashcardflag" visibility="hidden"/>
- <col ref="clamtrgtcd" visibility="hidden"/>
- <col ref="incomestat" visibility="hidden"/>
- <col ref="healexamgubun" visibility="hidden"/>
- </datagrid>
- </case>
- </switch>
- </case>
- </switch>
- </group>
- <group id="grp_btn" style="left:0px; top:756px; width:1195px; height:27px; ">
- <button id="btn_savecret" class="btn4_letter4" visibility="visible" style="left:946px; top:5px; width:80px; height:22px; ">
- <caption>청구생성</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- if(case_cret.selected == true){
- if(messageBox("청구생성을","Q004") == 6){
- fSetReqCret(); //청구생성
- fGetReqCretSum();
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_savaincm" class="btn4_letter4" visibility="visible" style="left:1028px; top:5px; width:80px; height:22px; ">
- <caption>입금저장</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- if(case_mngt.selected == true) {
- if(messageBox("입금내역을","Q002") == 6){
- fSetClamIncm("I");
- }
- }
- ]]>
- </script>
- </button>
- <button id="btn_clamcncl" class="btn4_letter4" style="left:1110px; top:5px; width:80px; height:22px; ">
- <caption>청구취소</caption>
- <script type="javascript" ev:event="DOMActivate">
- <![CDATA[
- if(isMagmAprv()){
- return false; //마감결제 완료되어있으므로 더이상 진행하지 않음 - PAM.js
- }
-
- if(case_mngt.selected == true) {
- if(messageBox("청구내역을","Q007") == 6) {
- fExeClamCncl("C");
- }
- }
- ]]>
- </script>
- </button>
- </group>
- </xhtml:body>
- </xhtml:html>
|